package yzrilyzr.simplesynth.app;
import android.annotation.TargetApi;
import android.media.midi.MidiReceiver;
import android.os.Build;

@TargetApi(Build.VERSION_CODES.M)
public class MyMidiReceiver extends MidiReceiver{
	@Override
	public void onSend(byte[] msg,int offset,int count,long timestamp){
		int data1=msg[1]&0xff;
		int data2=msg[2]&0xff;
		int data3=msg[3]&0xff;
		NativePlayer.postEvent(data1,data2,data3);
	}
}
